package fr.imag.adele.mediation.probes.util;

import java.util.Vector;

public class DataSet {
	private Vector m_dataEvents = new Vector();
	
	public void add(DataEvent dataEvent){
		m_dataEvents.add(dataEvent);
	}
	public void remove(DataEvent dataEvent){
		m_dataEvents.remove(dataEvent);
	}
	public void removeAllEvents(){		
		m_dataEvents.removeAllElements();
	}
	public int size(){
		return m_dataEvents.size();
	}
	public DataEvent getDataEvent(int i){
		return (DataEvent)m_dataEvents.get(i);
	}
	public Vector getAllDataEvents(){
		return m_dataEvents;
	}
	public void setDataEvents(Vector dataEvents){
		this.m_dataEvents = dataEvents;
	}	
	/*public DataSet getCopy(){
		DataSet dataSet = new DataSet();		
		for (int i=0; i<m_dataEvents.size();i++) {
			dataSet.add((DataEvent)m_dataEvents.get(i));
		}						
		return dataSet;		
	}*/
}
